<%@ page pageEncoding="UTF-8"%>
<%@ page import="itsm.isperp.control.form.process.WorkflowProcesser"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags"%>

<isperp:individuationView>

	<jsp:body>
<div class="box  no-border">

	<table class="form-table">
		<tr>
			<td colspan="4">
				<div class="header">
					<h3>
						基本信息（<label class="important-info">当前状态：${model.status}</label>）
					</h3>

				</div>
					</td>
		</tr>

		<tr>
			<td class="td1">申报人：</td>
			<td class="td2"><label style="font-weight: 700;font-size: 14px">${cusUser.fullname}</label>（工号：${cusUser.name}
				<c:if test="${empty cusUser.name}">${cusUser.code}</c:if>） <c:choose>
					<c:when test="${cusUser.sex eq '男' }">
						<img src='img/icons/packs/fugue/24x24/user-business.png' alt="男">
					</c:when>
					<c:when test="${cusUser.sex eq '女' }">
						<img src='img/icons/packs/fugue/24x24/user-female.png' alt="女">
					</c:when>
					<c:otherwise>
					</c:otherwise>
				</c:choose>
					</td>
			<td class="td1">电话：</td>
			<td class="td2">${cusUser.mobile}<c:if
							test="${not empty cusUser.tel}">/${cusUser.tel}</c:if>
			</td>
		</tr>

		<tr>

			<td class="td1">所在部门：</td>
			<td class="td2">${cusUser.department_treenode_name_path}</td>
			<td class="td1">邮件：</td>
			<td class="td2">${cusUser.email}</td>

		</tr>

		<tr>
			<td class="td1">附件：</td>
			<td class="td2" colspan="3"><isperp:uploader
							sourceId="${model.id }" id="incidentFiles" readonly="true"></isperp:uploader>
			</td>
		</tr>


	</table>
</div>


<form:form id="individuationForm" commandName="model"
			cssClass="validate" action="individuation/individuation/save">
	<form:hidden path="id" />
	<form:hidden path="categoryId" />

	<jsp:include page="../../incident/incident/incidentProperty.jsp"></jsp:include>

</form:form>
<br></br>

	</jsp:body>
</isperp:individuationView>

<script type="text/javascript">
	function showInfo() {
		var t = $("#a_showInfo").html();
		if (t == "显示简要信息") {
			$("[id^='frm_hd']").hide();
			$("[id^='frm_sh']").show();
			$("#a_showInfo").html("显示完整信息");
		} else if (t == "显示完整信息") {
			$("[id^='frm_hd']").show();
			$("[id^='frm_sh']").hide();
			$("#a_showInfo").html("显示简要信息");
		}

	}
</script>
<isperp:buttonList>

	<isperp:processButtons processKey="${model.processKey }"
		viewOnly="false" autoEntryNext="true" formId="individuationForm"
		areHideProcessBtn="true" processId="${model.processId }"
		businessKey="${model.id }"></isperp:processButtons>

</isperp:buttonList>


